﻿using System;
using System.Text;
using System.IO;

namespace VisualSearch.Core
{
    public static class Extensions
    {
        public static string ToUTF8String(this MemoryStream stream)
        {
            UTF8Encoding encoding = new UTF8Encoding();
            String constructedString = encoding.GetString(stream.ToArray());
            return constructedString;
        }
    }
}
